package com.cskaoyan.controller;

import com.cskaoyan.bean.basebean.BaseRespVo;
import com.cskaoyan.service.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @author 魏骏杰
 */
@RestController
public class DashBoardController {
    @Autowired
    DashBoardService dashBoardService;
    @RequestMapping("admin/dashboard")
    public BaseRespVo dashboard() {
        return BaseRespVo.ok(dashBoardService.countTablesForDashboard());
    }
}
